import request from '@/utils/request'

export const getEmployeeList = params => request.get('/sys/user', { params })

export const delEmployeeAPI = id => request.delete(`/sys/user/${id}`)

export const addEmployeeAPI = data => request.post('/sys/user', data)

export const getImportExcelAPI = data => request.post('/sys/user/batch', data)

// 分配角色
export const assignRoleAPI = data => request.put('/sys/user/assignRoles', data)
